diff options
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 42 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/+layout.server.ts | 1 |
2 files changed, 22 insertions, 21 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 9e5babd2..98b77fc9 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -40,30 +40,32 @@ <Account {user} {rate} {account} /> {/each} - <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white" - > - <a href={`/account/setup`}> - <div class="mx-auto flex gap-2"> - <Icon icon="plus" style="w-8 mx-auto invert" /> - <div class="my-auto text-xl whitespace-nowrap">Add account</div> - </div> - </a> - </button> - - {#if $installPrompt} + <div class="flex justify-center gap-2"> <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white grow basis-full fixed bottom-16 xl:hidden" - on:click={install} + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white w-full justify-center" > - <div class="mx-auto flex gap-2"> - <Icon icon="save" style="w-8 mx-auto invert" /> - <div class="my-auto text-xl whitespace-nowrap"> - {$t("user.install")} + <a href={`/account/setup`}> + <div class="mx-auto flex gap-2"> + <Icon icon="plus" style="w-8 mx-auto invert" /> + <div class="my-auto text-xl whitespace-nowrap">Add account</div> </div> - </div> + </a> </button> - {/if} + + {#if $installPrompt} + <button + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white xl:hidden w-full justify-center" + on:click={install} + > + <div class="mx-auto flex gap-2"> + <Icon icon="save" style="w-8 mx-auto invert" /> + <div class="my-auto text-xl whitespace-nowrap"> + {$t("user.install")} + </div> + </div> + </button> + {/if} + </div> {/if} <Items {items} {subject} {user} {total} {currency} {rate} /> diff --git a/src/routes/(app)/[username]/+layout.server.ts b/src/routes/(app)/[username]/+layout.server.ts index c340544d..9a520036 100644 --- a/src/routes/(app)/[username]/+layout.server.ts +++ b/src/routes/(app)/[username]/+layout.server.ts @@ -13,7 +13,6 @@ export let load = async ({ let subject = await get(`/users/${username}`); let { user } = await parent(); if (!user) user = subject; - console.log("SUBJECT", subject) let expires = new Date(); expires.setSeconds(expires.getSeconds() + 380 * 24 * 60 * 60); |
